package algorithm.findArrayMaximum;

import java.util.Arrays;
import java.util.OptionalInt;
import java.util.stream.IntStream;

public class findArrayMaximumAlogrithm {
    public static int exec(int[] inputArray) {
        // 核心逻辑
        OptionalInt max = IntStream.of(inputArray).max();
        return max.getAsInt();
    }

    public static void main(String[] args) {
        int[] x = {1,7,4,2,9,17,6,10};
        int maximum = exec(x);
        System.out.println(maximum);
    }
}
enum A {
    ;
    private A(){
        
    }
}
